package com.sdruixinggroup.mondayb2b.models;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 00029935 on 2017/11/29.
 */

public class ShoppingCartBeen implements Serializable{

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1511940383
     * merchants : [{"merchant_id":1,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/6a23d357c18c38731f4c72ae0874e1af.jpg","name":"测试店铺","shopping_carts":[{"goods":{"goods_id":1,"name":"化肥","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":5},"shopping_cart_id":18,"goods_id":1,"quantity":2},{"goods":{"goods_id":2,"name":"超级金克拉1号","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":2},"shopping_cart_id":19,"goods_id":2,"quantity":2}]},{"merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopping_carts":[{"goods":{"goods_id":2,"name":"超级金克拉1号","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":2},"shopping_cart_id":21,"goods_id":2,"quantity":1}]}]
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private List<MerchantsBean> merchants;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public List<MerchantsBean> getMerchants() {
        return merchants;
    }

    public void setMerchants(List<MerchantsBean> merchants) {
        this.merchants = merchants;
    }

    public static class MerchantsBean implements Serializable{
        /**
         * merchant_id : 1
         * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/6a23d357c18c38731f4c72ae0874e1af.jpg
         * name : 测试店铺
         * shopping_carts : [{"goods":{"goods_id":1,"name":"化肥","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":5},"shopping_cart_id":18,"goods_id":1,"quantity":2},{"goods":{"goods_id":2,"name":"超级金克拉1号","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":2},"shopping_cart_id":19,"goods_id":2,"quantity":2}]
         */

        private int merchant_id;
        private String thumb;
        private String name;
        private List<ShoppingCartsBean> shopping_carts;
        public boolean isSelect = true;
        public  boolean isEditabe = false;

        public int getMerchant_id() {
            return merchant_id;
        }

        public void setMerchant_id(int merchant_id) {
            this.merchant_id = merchant_id;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<ShoppingCartsBean> getShopping_carts() {
            return shopping_carts;
        }

        public void setShopping_carts(List<ShoppingCartsBean> shopping_carts) {
            this.shopping_carts = shopping_carts;
        }

        public static class ShoppingCartsBean implements Serializable{
            /**
             * goods : {"goods_id":1,"name":"化肥","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":5}
             * shopping_cart_id : 18
             * goods_id : 1
             * quantity : 2
             */

            public boolean isSelect = true;
            public  boolean isEditabe = false;
            public boolean inVisiableCheckView = false;
            private GoodsBean goods;
            private int shopping_cart_id;
            private int goods_id;
            private int quantity = 0;
            private int  buy_limit = 0;

            public int getBuy_limit() {
                return buy_limit;
            }

            public void setBuy_limit(int buy_limit) {
                this.buy_limit = buy_limit;
            }

            public GoodsBean getGoods() {
                return goods;
            }

            public void setGoods(GoodsBean goods) {
                this.goods = goods;
            }

            public int getShopping_cart_id() {
                return shopping_cart_id;
            }

            public void setShopping_cart_id(int shopping_cart_id) {
                this.shopping_cart_id = shopping_cart_id;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public static class GoodsBean implements Serializable{
                /**
                 * goods_id : 1
                 * name : 化肥
                 * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png
                 * price : 5
                 */

                private int goods_id;
                private String name;
                private String thumb;
                private double sale_price=0;
                private int price;

                public double getSale_price() {
                    return sale_price;
                }

                public int getGoods_id() {
                    return goods_id;
                }

                public void setGoods_id(int goods_id) {
                    this.goods_id = goods_id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getThumb() {
                    return thumb;
                }

                public void setThumb(String thumb) {
                    this.thumb = thumb;
                }

                public int getPrice() {
                    return price;
                }

                public void setPrice(int price) {
                    this.price = price;
                }
            }
        }
    }
}
